<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>管理系统</title>

    <!-- Bootstrap -->
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
    <link href="../build/css/custom.min.css" rel="stylesheet">
    <link rel="stylesheet"   href="css/pubuse.css">
  
  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>出票管理系统</span></a>
            </div>

            <div class="clearfix"></div>

            <!-- menu profile quick info -->
            <div class="profile clearfix">
              <div class="profile_pic">
                <img src="img/b4.png" alt="..." class="img-circle profile_img">
              </div>
              <div class="profile_info">
                <span>Welcome</span>

              </div>
            </div>
            <!-- /menu profile quick info -->

            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
              <div class="menu_section">
                <!--#include virtual="/webadmin/store/share/publeftbar.html"-->
                 
              </div>
            

            </div>
           

          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <button type="button" class="" id="logoutbtn"   onclick="loginOut()">
                    退出 
                   </button>
               
                </li>

              </ul>
            </nav>
          </div>
        </div>
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col  right_col_sel" role="main">
          <div class="">
           

            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title"  style="position:relative;">
                    <h2>机器信息管理</h2>
                    <div  class="matchadmin">
                          <div  class="machinenum">
                            机器编号: <input type="text"   id="machineNum">
                            <a href="javascript:;"  class="btn  btn-primary"   id="searchBtn">查询</a>
                            <input type="checkbox"  class="sel-isuse"  id="mcanuse"  value="2"> 可用   <input type="checkbox" class="sel-isuse"   value="1" id="munuse"> 不可用
                           </div>

                          <div  class="msearchwrap">
                              <a href="javascript:;"  class="btn  btn-primary"   id="cancelXiaopiaoMachine">取消小票机器</a>
                              <a href="javascript:;"  class="btn  btn-primary"   id="setXiaopiaoMachine">设置小票机器</a>
                              <a href="javascript:;"  class="btn  btn-primary"   id="addNewMachine">添加机器</a>
                          </div>
                     
                      
                       </div>
                     
               

                 
                    <div class="clearfix"></div>
                  </div>
                  <div class="table-responsive">
                    <table class="table table-striped jambo_table bulk_action">
                      <colgroup>
                         <col  width="3%">
                          <col  width="10%">
                          <col  width="7%">
                          <col  width="10%">
                          <col  width="25%">
                          <col  width="7%">
                          <col  width="7%">
                          <col  width="%">
 
                      </colgroup>
                      <thead>
                      
                        <tr class="headings">
                            <th class="column-title   machineth">
                               
                            </th>
                            <th class="column-title">机器编号</th>
                            <th class="column-title">余额</th>
                            <th class="column-title">机器密码</th>
                            <th class="column-title">描述</th>
                            <th class="column-title">机器状态</th>
                            <th class="column-title">接单状态</th>
                            <th class="column-title">操作</th>

                        </tr>
                      </thead>

                      <tbody   id="unticketList">

                      </tbody>
                    </table>

                    <div class="paginationwrap">
                        <div  class="show-num-info">
                            共 <span class="countpages"  id="countpages"></span> 页
                           共 <span class="countnums"  id="countnums"></span> 条数据
                          
                        </div>
                        <div  class="pagination-sel"  id="paginationSel">
                          
                        </div>
                    </div>

                  </div>

                     <!-- 大小票控制 -->
                     <div  class="daxiaopiaocontroller">
                        <div  class="controller-input-wrap">
                            <p>大小票控制-小票金额 <span  id="xpMoney"></span></p>
                            <label for="">
                               小票金额 <input type="text"   id="xiaopiaomoney">  元
                            </label>
                          
                           <div  class="btn-wrap">
                               <a href="javascript:;"  class="btn  btn-primary"  data-placement="right" data-content="设置成功"  id="saveBtnMoney">保存</a>
 
                           </div>
                         
                        </div>
                        <div  class="controller-input-wrap">
                            <p>大小票控制-截止前时间 <span  id="endTime"></span> </p>
                            <label for="">
                               截止前 &nbsp;&nbsp;&nbsp;&nbsp;<input type="text"  id="xiaopiaotime">  分钟, 不区分大小票
                           </label>
                           <div  class="btn-wrap">
                               <a href="javascript:;"  class="btn  btn-primary"  data-placement="right" data-content="设置成功"   id="saveBtnTime">保存</a>
 
                           </div>
                         
                        </div>
                        <!-- <div  class="controller-save-wrap"  id="controllerSave">
                            <p>大小票控制</p>
                            <p  class="savetip">是否保存小票金额 <span  id="money"></span>元,截止前  <span  id="time"></span> 分钟,不区分大小票</p>
                            <div  class="btn-wrap">
                                <a href="javascript:;"  class="btn  btn-primary"   id="confirmBtn"  data-placement="left" data-content="添加成功">是</a>
                                <a href="javascript:;"  class="btn  btn-primary"   id="cancelSave">取消</a>
  
                            </div>

                        </div> -->
                     </div>





                 
                </div>
              </div>

            </div>
          </div>
        </div>

              
       
     
      </div>
    </div>

    <!-- 添加机器 -->
    <div class="modal fade" id="addMachineModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" >机器信息</h4>
            </div>
            <div class="modal-body">
                <form id="demo-form2" data-parsley-validate="" class="form-horizontal form-label-left" novalidate="">

                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">机器编号 <span class="required">*</span>
                      </label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input type="text" id="addmachineNum"  required="required" class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">机器密码 <span class="required">*</span>
                      </label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input type="text" id="addmachinepwd" name="last-name" required="required" class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">机器描述</label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input id="machineDesc" class="form-control col-md-7 col-xs-12" type="text" name="middle-name">
                      </div>
                    </div>
                    
                  </form>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-primary"    data-placement="right" data-content="添加成功"  id="addMachineBtn"  >添加</button>
            </div>
          </div>
        </div>
      </div>


      <!--  编辑 -->
      <div class="modal fade" id="editorMachineModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" >机器信息修改</h4>
            </div>
            <div class="modal-body">
                <form id="" data-parsley-validate="" class="form-horizontal form-label-left" novalidate="">

       
                    <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">机器编号 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="editorMachineNum"   readonly="readonly"   class="form-control col-md-7 col-xs-12">
                        </div>
                      </div>
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">机器密码 <span class="required">*</span>
                      </label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input type="text" id="editorMachinePwd" name="last-name" required="required" class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">机器描述</label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input id="editorMachinedesc" class="form-control col-md-7 col-xs-12" type="text" name="middle-name">
                      </div>
                    </div>
                    <div class="form-group">
                        <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">机器状态</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <select name="" id="editorMachineStatus"   class="form-control">
                            <option  value="-1">不可用</option>
                            <option   value="1">可用</option>

                           </select>
                        </div>
                      </div>
                      <!-- <div class="form-group">
                        <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">竞彩返点</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="editorMachinerebate" class="form-control col-md-7 col-xs-12" type="text" name="middle-name">
                        </div>
                      </div>
                      <div class="form-group">
                          <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">北单返点</label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="editorMachinebdrebate" class="form-control col-md-7 col-xs-12" type="text" name="middle-name">
                          </div>
                        </div>
                      <div class="form-group">
                        <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">结算日</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="editorMachinejiesuan" class="form-control col-md-7 col-xs-12" type="text" name="middle-name">
                        </div>
                      </div> -->
                    
                  </form>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-primary"    data-placement="right" data-content="修改成功"  id="modifyMachineBtn"  >修改</button>
            </div>
          </div>
        </div>
      </div>



          <!-- 设置小票机器 -->
    <div class="modal fade  bs-example-modal-sm" id="headTicketsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"  style="padding-top:150px;">
        <div class="modal-dialog " role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" >确定所选机器设置为小票机器吗</h4>
            </div>
          
            <div class="modal-footer">
              <button type="button" class="btn btn-primary"  id="confirmheadBtn">确定</button>
              <input type="hidden"  id="">
            </div>
          </div>
        </div>
      </div>

             <!-- 取消小票机器 -->
    <div class="modal fade  bs-example-modal-sm" id="headTicketsModalcancel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"  style="padding-top:150px;">
        <div class="modal-dialog " role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" >确定取消小票机器吗</h4>
            </div>
          
            <div class="modal-footer">
              <button type="button" class="btn btn-primary"  id="cancelXpBtn">确定</button>
              <input type="hidden"  id="">
            </div>
          </div>
        </div>
      </div>

  <!--  加款 -->
  <div class="modal fade" id="addmoneyMachineModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" >机器加款</h4>
          </div>
          <div class="modal-body">
  
              <form id="" data-parsley-validate="" class="form-horizontal form-label-left" novalidate="">
                  <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">机器编号 <span class="required">*</span>
                      </label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input type="text" id="addmoneyMachineNum"   readonly="readonly"   class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                  <div class="form-group">
                    <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">加款金额: <span class="required">*</span>
                    </label>
                    <div class="col-md-6 col-sm-6 col-xs-12">
                      <input type="text" id="addtotalmomey" name="last-name" required="required" class="form-control col-md-7 col-xs-12">
                    </div>
                  </div>
                  <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">备注: <span class="required">*</span>
                      </label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input type="text" id="addmoneymark" name="last-name" required="required" class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                </form>
               
               
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-primary"    data-placement="right" data-content="加款成功"  id="addmoneyMachineBtn"  >加款</button>
          </div>
        </div>
      </div>
    </div>

      <!--  减款 -->
  <div class="modal fade" id="cutdownmoneyMachineModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" >机器扣款</h4>
          </div>
          <div class="modal-body">
              <form id="" data-parsley-validate="" class="form-horizontal form-label-left" novalidate="">

                  <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">机器编号 <span class="required">*</span>
                      </label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input type="text" id="cutdownmoneyMachineNum"   readonly="readonly"   class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                  <div class="form-group">
                    <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">扣款金额: <span class="required">*</span>
                    </label>
                    <div class="col-md-6 col-sm-6 col-xs-12">
                      <input type="text" id="cutdownmoney" name="last-name" required="required" class="form-control col-md-7 col-xs-12">
                    </div>
                  </div>
                  <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">备注: <span class="required">*</span>
                      </label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input type="text" id="cutmoneymark" name="last-name" required="required" class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
               
              </form> 
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-primary"    data-placement="right" data-content="扣款成功"  id="cutdownmoneyMachineBtn"  >扣款</button>
          </div>
        </div>
      </div>
    </div>



   
     <!-- 公用 弹窗 -->
     <div class="modal " id="loginoutModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"  style="z-index:3000;">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" id="myModalLabel"   style="text-align:center;"></h4>
            </div>
            <!-- <div class="modal-body">
              <div  id="tipsContent"></div>
            </div> -->
            <div class="modal-footer">
              <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
            </div>
          </div>
        </div>
      </div>



            <!--  机器彩种设置-->
  <!-- <div class="modal fade" id="lottypeMachineModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" ><span  id="lottypemid"></span> 机器彩种设置</h4>
          </div>
          <div class="modal-body">
              <div  class="matchine-set">
                  <div  class="settype"  id="settype">
              
                    
                  </div>
                  <div  class="setbtn">
                    
                  </div>
               </div>
             
          </div>
         
        </div>
      </div>
    </div> -->


    <div class="modal fade" id="lottypeMachineModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document"  style="width:1000px;">
        <div class="modal-content"  style="width:1000px;">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" ><span  id="lottypemid"></span> 机器配置</h4>
          </div>
          <div class="modal-body">
              <div  class="matchine-set">
                <iframe src="" frameborder="0" id="setgameframe" style="width:100%;height:800px;"></iframe>
              
               </div>
             
          </div>
 
        </div>
      </div>
    </div>






    <!-- jQuery -->
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <script  src="js/publicuse.js"></script>
    <script src="../build/js/custom.min.js"></script>

    <script  src="js/machine.js"></script>

  </body>
</html>